package com.xmtlxx.system.mapper;

import com.xmtlxx.common.annotation.DataColumn;
import com.xmtlxx.common.annotation.DataPermission;
import com.xmtlxx.common.core.domain.entity.SysTag;
import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmtlxx.system.domain.bo.SysTagBo;
import com.xmtlxx.system.domain.vo.SysTagVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 标签管理Mapper接口
 *
 * @author xmtlxx
 * @date 2022-04-26
 */
public interface SysTagMapper extends BaseMapperPlus<SysTagMapper, SysTag, SysTagVo> {
    /**
     * 根据条件分页查询标签管理
     *
     * @param sysTagBo 标签管理
     * @return Page SysTag
     */
    @DataPermission({
        @DataColumn(key = "tenantName", value = "s.create_by"),
        @DataColumn(key = "deptName", value = "s.create_by"),
        @DataColumn(key = "userName", value = "s.create_by")
    })
    Page<SysTag> selectPageSysTagList(@Param("page") Page<SysTag> page,@Param("sysTag") SysTagBo sysTag);

    /**
     * 查询标签管理列表
     *
     * @param sysTagBo 标签管理
     * @return 标签管理集合
     */
    @DataPermission({
        @DataColumn(key = "tenantName", value = "s.create_by"),
        @DataColumn(key = "deptName", value = "s.create_by"),
        @DataColumn(key = "userName", value = "s.create_by")
    })
    List<SysTag> selectSysTagList(SysTagBo sysTag);

}
